﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;
using Abp.AutoMapper;
using FwProject.ShoppingMall.Com;

namespace FwProject.Com.Dto
{
    /// <summary>
    /// 供应商模型
    /// </summary>
    [AutoMap(typeof(SettlementSupplier))]
    public class SettlementSupplierInput
    {
        /// <summary>
        /// 供应商id
        /// </summary>
        [Display(Name = "供应商编号")]
        public Guid SupplierId { get; set; }

        /// <summary>
        /// 结算时间
        /// </summary>
        [Display(Name = "结算时间")]
        public DateTime SettlementTime { get; set; }

        /// <summary>
        /// 结算金额
        /// </summary>
        [Display(Name = "结算金额")]
        public decimal SettlementPrice { get; set; } = 0m;

        /// <summary>
        /// 结算优惠金额
        /// </summary>
        [RegularExpression(@"^[0-9]*$", ErrorMessage ="金额只能输数字！")]
        [Display(Name = "优惠金额")]
        public decimal SettlementPreferentia { get; set; } = 0m;

        /// <summary>
        /// 结算实际金额
        /// </summary>
        [Display(Name = "实际金额")]
        public decimal SettlementAmount { get; set; } = 0m;

        /// <summary>
        /// 实际结算人编号
        /// </summary>
        [Display(Name = "结算用户")]
        public long SettlementId { get; set; }
    }
}
